package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/5/30
 * Description :
 */
public class ApiGetAddress<T> extends ApiBaseParamAbstract {
    public ApiGetAddress(int index, MyRetroCallBack<T> myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("index", String.valueOf(index));

    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getAddressInfo(mParams);
    }
}
